﻿
Imports System.IO

Partial Class adminnew_Agreement
    Inherits Page

    Public text As String


    Protected Overrides Sub OnLoad(e As EventArgs)
        MyBase.OnLoad(e)

        text = Request.Form("text")
        If String.IsNullOrEmpty(text) <> True Then
            File.WriteAllText(MapPath("/agr.txt"), text, Encoding.UTF8)
        End If


        text = File.ReadAllText(MapPath("/agr.txt"), Encoding.UTF8)

    End Sub


End Class
